export default {
  computed: {
    code: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
  methods: {
    refresh() {
      this.code = "";
      if (this.$refs.pic) this.$refs.pic.refresh();
    },
  },
};
